import request from '@/utils/request'
import apis from './'

export function getInfo () {
  return request({
    url: apis.UserInfo,
    method: 'get'
  })
}

export function getNav () {
  return request({
    url: apis.UserInfo,
    method: 'get'
  })
}

export function getPassword () {
  return request({
    url: apis.ChangePassword,
    method: 'get'
  })
}

export function changePassword (data) {
  return request({
    url: apis.ChangePassword,
    method: 'post',
    data: data
  })
}
